import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * /spend/sum/{siteId}
 */
export function getSpendSumBySiteId(params: GetSpendSumBySiteIdParams, config?: AxiosRequestConfig) {
    return request.get<DeepRequired<any>>(`/spend/sum/${params.siteId}`, config);
}

export interface GetSpendSumBySiteIdParams {
    siteId: number;
}
